<%--
  Created by IntelliJ IDEA.
  User: 24782
  Date: 2024/11/29
  Time: 10:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"  isELIgnored="false"%>
<html>
<head>
    <title>Title</title>
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <!-- 引入样式 -->
    <link rel="stylesheet" href="../plugins/elementui/index.css">
    <link rel="stylesheet" href="../plugins/font-awesome/css/font-awesome.min.css">
</head>
<body>

<div>
    <form action="pojo/">
        用户名：<input id="username" type="text"></input></br>
        密&nbsp;&nbsp;&nbsp;码：<input id="password" type="password"></input></br>
        <button type="submit" onclick="pojoParam()">登录</button>
    </form>
</div>
<script src="../js/vue.js"></script>
<script src="../plugins/elementui/index.js"></script>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script src="../js/axios-0.18.0.js"></script>

<script>
    let pojoInfo = {
        username: '',
        password: ''
    };

    function pojoParam(){
        pojoInfo.username = document.getElementById("username").value
        pojoInfo.password = document.getElementById("password").value

        axios.post("/pojo/", pojoInfo).then(()=>{

            alert(pojoInfo.username + pojoInfo.password);

        }).catch(()=>{

        })
    }

</script>


</body>
</html>

